* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #fff;
}

li {
  list-style: none;
}

#blog-header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  padding: 0 20px;
  height: 60px;
  width: 100%;
  line-height: 60px;
  background-color: #1b1b1b;
  border-bottom: 1px solid #cdcdcd;
  color: #fff;
}

#blog-header h1 {
  margin-right: 20px;
  font-size: 24px;
  font-weight: 400;
}

#blog-header .blog-nav ul .nav-item {
  position: relative;
  float: left;
}

#blog-header .blog-nav ul .nav-item .nav-item-a {
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 3px;
}

#blog-header .blog-nav ul .nav-item .nav-item-a:hover {
  background-color: #45395a;
}

#blog-header .blog-nav ul .nav-item .menu {
  display: none;
  position: absolute;
  top: 55px;
  left: 0;
  border: 1px solid #cdcdcd;
  border-radius: 3px;
  background-color: #1b1b1b;
}

#blog-header .blog-nav ul .nav-item .menu li {
  padding: 5px;
  line-height: 50px;
}

#blog-header .blog-nav ul .nav-item .menu li a {
  position: relative;
  display: inline-block;
  padding-left: 30px;
  width: 120px;
  border-radius: 3px;
}

#blog-header .blog-nav ul .nav-item .menu li a:hover {
  background-color: #343434;
}

#blog-header .blog-nav ul .nav-item .menu li a::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 15px;
  height: 20px;
  width: 4px;
  background-color: #ff707f;
}

#blog-header .blog-nav ul .nav-item .menu li:nth-child(2) a::before {
  background-color: #8cb4ff;
}

#blog-header .blog-nav ul .nav-item .menu li:nth-child(3) a::before {
  background-color: #afa100;
}

#blog-header .blog-nav ul .nav-item .menu li:nth-child(4) a::before {
  background-color: #00b755;
}

#blog-header .blog-nav ul .nav-item .menu li:nth-child(5) a::before {
  background-color: #ae8aff;
}

#blog-main {
  margin-top: 60px;
  height: 2000px;
  background-color: #343434;
}

.banner {
  height: 300px;
  padding-top: 30px;
  line-height: 1.5;
  background-color: #060807;
  background-image: url("../images/eclipse_bg.jpg");
  background-repeat: no-repeat;
  background-size: 1500px;
  background-position: center -30px;
  color: #fff;
  font-size: 50px;
  text-align: center;
}

.blog-article {
  padding-top: 80px;
  height: 400px;
  color: #fff;
}

.blog-article:nth-child(even) {
  background-color: #1b1b1b;
}

.blog-article:nth-child(even) .w {
  flex-direction: row-reverse;
}

.blog-article .w {
  width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
}

.blog-article .w .title {
  font-size: 30px;
  font-weight: 700;
}

.blog-article .w .content {
  margin-top: 30px;
  width: 500px;
  line-height: 2;
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-article .w .pubtime {
  margin-top: 30px;
  font-size: 12px;
  color: #cdcdcd;
}

.blog-article .w .more {
  align-self: center;
  display: inline-block;
  margin-top: 30px;
  padding: 10px;
  background-color: #fff;
  border-radius: 3px;
  color: #000;
  font-size: 18px;
  text-align: center;
}

.blog-article .w .more:hover {
  background-color: #cdcdcd;
}
